import React from "react";
import {Lazy} from "@kordar/easyui-tpl";


const Admin = React.lazy(() => import("../../views/system/admin"))
const Setting = React.lazy(() => import("../../views/system/setting"))
const Roles = React.lazy(() => import("../../views/system/roles"))
const Permissions = React.lazy(() => import("../../views/system/permissions"))
const Language = React.lazy(() => import("../../views/system/admin"))
const Dict = React.lazy(() => import("../../views/system/dict"))
const Router = React.lazy(() => import("../../views/system/router"))
// const ScreenIndex = React.lazy(() => import("../../views/system/screen"))


let props = {pageConfig: {}, fetchConfig: {}}
const systemRoutes = [
    {path: "admin", element: Lazy(<Admin {...props} />)},
    {path: "setting", element: Lazy(<Setting {...props} />)},
    {path: "role", element: Lazy(<Roles {...props} />)},
    {path: "permission", element: Lazy(<Permissions {...props} />)},
    {path: "language", element: Lazy(<Language {...props} />)},
    {path: "dict", element: Lazy(<Dict {...props} />)},
    {path: "router", element: Lazy(<Router {...props} />)},
    // {path: "screen/index", element: Lazy(<ScreenIndex {...props} />)},
]


export default systemRoutes
